From 9ec4b6a258c99bff307cfbde6b183634210d6363 Mon Sep 17 00:00:00 2001 From: justbur Date: Wed, 6 Jul 2016 15:16:40 -0400 Subject: [PATCH] Explicitly set tab-width when collecting bindings For some reason indent-tabs-mode doesn't use tabs with strange tab-widths. See https://github.com/syl20bnr/spacemacs/issues/6497 --- which-key.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/which-key.el b/which-key.el index c9cd9e3b3fc..280212bba3c 100644 --- a/which-key.el +++ b/which-key.el @@ -1429,8 +1429,9 @@ alists. Returns a list (key separator description)." (ignore-keys-regexp "mouse-\\|wheel-\\|remap\\|drag-\\|scroll-bar\\|select-window\\|switch-frame\\|-state") (ignore-sections-regexp "\\(Key translations\\|Function key map translations\\|Input decoding map translations\\)")) (with-temp-buffer - (let ((indent-tabs-mode t)) - (describe-buffer-bindings buffer which-key--current-prefix)) + (setq-local indent-tabs-mode t) + (setq-local tab-width 8) + (describe-buffer-bindings buffer which-key--current-prefix) (goto-char (point-min)) (let ((header-p (not (= (char-after) ?\f))) bindings header) -- 2.30.2